import React from 'react';
import axios from 'axios'
//获取服务分类
export async function apiGetServiceClassify() {
  return await React.$post('/management/serviceClassify/list')
}
//获取商品分类
export async function apiGetProductClassify() {
  return await React.$post('/management/productClassify/openList')
}
//获取服务分页
export async function apiGetStoreServicePage(params) {
  return await React.$post('/management/storeService/infoPage', params)
}
//获取服务分页
export async function apiGetProductPage(params) {
  return await React.$post('/management/productInfo/findProductSkuCashierPage', params)
}
//获取会员信息
export async function apiGetMemberInfo(params) {
  return await React.$get('/management/member/getMemberInfoByMemberMobile', params)
}
//获取总计
export async function apiGetAmount(params) {
  return await React.$postJson('/management/order/checkStandOrderAmount/json', params)
}
//获取退款总计
export async function apiStandSalesReturn(params) {
  return await React.$postJson('/management/standSalesReturn/initiateRefundAmount/json', params)
}
//创建订单
export async function apiCreateOrder(params) {
  return await React.$postJson('/management/order/createStandOrder/json', params)
}
//收银台退款
export async function apiStandSalesReturnOrder(params) {
  return await React.$postJson('/management/standSalesReturn/initiateRefund/json', params)
}
//支付详情
export async function apiStandOrderDetail(params) {
  return await React.$post('/management/order/standOrderDetail', params)
}
//订单取消
export async function apiStandOrderCancel(params) {
  return await React.$post('/management/order/standOrderCancel', params)
}
//线下订单
export async function apiGetStandOrderPage(params) {
  return await React.$post('/management/order/getStandOrderPage', params)
}
//线下订单详情
export async function apiGetStandOrderDetail(params) {
  return await React.$post('/management/order/getStandOrderDetail', params)
}
//线下订单退款分页
export async function apiGetReturnOrderPage(params) {
  return await React.$post('/management/standSalesReturn/page', params)
}
//线下订单退款详情
export async function apiGetReturnOrderDetail(params) {
  return await React.$post('/management/standSalesReturn/view', params)
}
//收银结算
export async function apiStandOrderSettlement(params) {
  return await React.$post('/management/order/standOrderSettlement', params)
}
//退款订单-订单id
export async function apiStandDetailByOrdeId(params) {
  return await React.$post('/management/standSalesReturn/viewByOrderId', params)
}
//获取导购员
export async function apiGetSalesmanList(params) {
  return await React.$post('/management/shoppingGuideInfo/list', params)
}
//注册会员信息
export async function apiRegisterMember(params) {
  return await React.$post('/app/auth/memberRegistered/management', params)
  // return await React.$post('/app/auth/mobileLogin', params)
}
//获取验证码
export async function apiSendLoginMessage(params) {
  return await React.$get('/app/auth/sendLoginMessage', params)
}
// 获取会员卡余额支付列表
export async function apimemberBalancePage(params) {
  return await React.$post('/management/memberBalanceDetails/page', params)
}
// 获取会员卡余额支付列表
export async function apimemberBalanceView(params) {
  return await React.$post('/management/memberBalanceDetails/view', params)  
}
// 获取会员列表
export async function apimemberCartPage(params) {
  return await React.$post('/management/memberBalanceDetails/memberCartPage', params)
}
// 导出资金日报表
export async function apiOrderExportCapitalDaily(params) {
  return await React.$post('/management/order/exportCapitalDaily', params)
}
//导出资金日报订单
export async function apiGetOrderExportOrder(params) {
  return await React.$post('/management/order/exportOrder', params);
}
//导出销售出库单
export async function apiExportLibraryOutReport(params) {
  return await React.$post('/management/order/exportLibraryOutReport', params);
}
  
// 门店客情表分页
export async function apiTStoreMemberInfoPage(params) {
  return await React.$post('/management/tStoreMemberInfo/page', params);
}

// 门店客情表新增
export async function apiTStoreMemberInfoAdd(params) {
  return await React.$post('/management/tStoreMemberInfo/add', params);
}
// 门店客情表编辑
export async function apiTStoreMemberInfoEdit(params) {
  return await React.$post('/management/tStoreMemberInfo/edit', params);
}
// 门店客情表删除
export async function apiTStoreMemberInfoDel(params) {
  return await React.$post('/management/tStoreMemberInfo/del', params);
}
// 门店客情表详情
export async function apiTStoreMemberInfoView(params) {
  return await React.$post('/management/tStoreMemberInfo/view', params);
}


// 门店客情表分页
export async function apitStorePetArchivesPage(params) {
  return await React.$post('/management/tStorePetArchives/page', params);
}

// 门店客情表新增
export async function apitStorePetArchivesAdd(params) {
  return await React.$post('/management/tStorePetArchives/add', params);
}
// 门店客情表编辑
export async function apitStorePetArchivesEdit(params) {
  return await React.$post('/management/tStorePetArchives/edit', params);
}
// 门店客情表删除
export async function apitStorePetArchivesDel(params) {
  return await React.$post('/management/tStorePetArchives/del', params);
}
// 门店客情表详情
export async function apitStorePetArchivesView(params) {
  return await React.$post('/management/tStorePetArchives/view', params);
}
// 商城微信扫码支付结果轮询
export async function apiOrderPollingPayResult(params) {
  return await React.$postJson('/management/order/pollingPayResult', params);
}
// 酒店微信扫码支付结果轮询
export async function apiHotelOrderInfoPollingPayResult(params) {
  return await React.$postJson('/management/hotelOrderInfo/pollingPayResult', params);
}

// 会员优惠券查询
export async function apiPostMemberCouponList(params) {
  return await React.$postJson('/trade/api/b/management/memberCoupon/listOnCashierCheckoutPage',params)
}

// 会员对账报表
export async function apiPostMemberBalanceReportFormsPage(params) {
  return await React.$post('/management/memberBalanceDetails/reportFormsPage',params)
}

// 会员对账报表-导出
export async function apiPostMemberBalanceReportFormsExport(params) {
  return await React.$post('/management/memberBalanceDetails/reportFormsList',params)
}
